package com.kob.Etextbook.common.enums;

import com.kob.Etextbook.common.exception.BaseExceptionInterface;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResponseCodeEnum implements BaseExceptionInterface {
    SYSTEM_ERROR("10000", "系统错误"),
    LOGIN_FAIL("20000", "登录失败"),
    PARAM_NOT_VALID("10001", "参数错误"),
    USERNAME_OR_PWD_ERROR("20001", "用户名或密码错误"),
    UNAUTHORIZED("20002", "无权限访问，请先登录"),
    USERNAME_NOT_FOUND("20003", "该用户不存在"),
    CATEGORY_NAME_IS_EXISTED("20004", "分类已存在" );

    private String errorCode;
    private String errorMessage;
}
